#include "stdafx.h"
#include "BaseLayer.h"

class CIPLayer
	:public	CBaseLayer
{
public:
	CIPLayer(char *pName);

	virtual BOOL Receive(unsigned char* ppayload);
	virtual BOOL Send(unsigned char* ppayload, int length);


	typedef struct _IP_HEADER_
	{
		unsigned short src_ip_addr;
		unsigned short des_ip_addr;

		unsigned char tmp[16];
		unsigned char Ip_data[IP_DATA_SIZE];
	}Ip_Header, *PIp_Header;

protected:
	Ip_Header m_ipHeader;

};